home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-10-17 | 7.4 KB | [TEXT/MMCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Oct 17 15:05:12 1994, modified Mon Oct 17 15:05:12 1994, creator 'MMCC', type ASCII, 6666 bytes "ReadLuminanceRecord.c" , at 0x1a8a 558 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MMCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 52 65 61 64 4c 75 | 6d 69 6e 61 6e 63 65 52 |..ReadLu|minanceR|
|00000010| 65 63 6f 72 64 2e 63 00 | 00 00 00 00 00 00 00 00 |ecord.c.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 1a 0a 00 | 00 02 2e aa c8 7b 68 aa |........|.....{h.|
|00000060| c8 7b 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.{h.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 65 a6 00 00 |........|....e...|
|00000080| 2f 2a 0d 52 65 61 64 4c | 75 6d 69 6e 61 6e 63 65 |/*.ReadL|uminance|
|00000090| 52 65 63 6f 72 64 2e 63 | 0d 0d 6c 6f 6e 67 20 49 |Record.c|..long I|
|000000a0| 6e 69 74 69 61 6c 69 7a | 65 4c 75 6d 69 6e 61 6e |nitializ|eLuminan|
|000000b0| 63 65 52 65 63 6f 72 64 | 28 4c 75 6d 69 6e 61 6e |ceRecord|(Luminan|
|000000c0| 63 65 52 65 63 6f 72 64 | 20 2a 4c 50 2c 73 68 6f |ceRecord| *LP,sho|
|000000d0| 72 74 20 66 6c 61 67 73 | 29 3b 0d 0d 09 69 3d 52 |rt flags|);...i=R|
|000000e0| 65 61 64 4c 75 6d 69 6e | 61 6e 63 65 52 65 63 6f |eadLumin|anceReco|
|000000f0| 72 64 28 22 4c 75 6d 69 | 6e 61 6e 63 65 52 65 63 |rd("Lumi|nanceRec|
|00000100| 6f 72 64 31 2e 68 22 2c | 26 4c 52 2c 30 29 3b 0d |ord1.h",|&LR,0);.|
|00000110| 52 65 61 64 73 20 61 20 | 4c 75 6d 69 6e 61 6e 63 |Reads a |Luminanc|
|00000120| 65 52 65 63 6f 72 64 3f | 2e 68 20 66 69 6c 65 20 |eRecord?|.h file |
|00000130| 61 74 20 72 75 6e 74 69 | 6d 65 2e 20 49 6e 20 74 |at runti|me. In t|
|00000140| 68 65 20 70 61 73 74 2c | 20 74 68 65 73 65 20 63 |he past,| these c|
|00000150| 61 6c 69 62 72 61 74 69 | 6f 6e 2d 64 61 74 61 20 |alibrati|on-data |
|00000160| 66 69 6c 65 73 0d 63 6f | 75 6c 64 20 6f 6e 6c 79 |files.co|uld only|
|00000170| 20 62 65 20 75 73 65 64 | 20 62 79 20 23 69 6e 63 | be used| by #inc|
|00000180| 6c 75 64 69 6e 67 20 74 | 68 65 6d 20 61 74 20 63 |luding t|hem at c|
|00000190| 6f 6d 70 69 6c 65 20 74 | 69 6d 65 2e 0d 0d 09 6c |ompile t|ime....l|
|000001a0| 6f 6e 67 20 57 72 69 74 | 65 4c 75 6d 69 6e 61 6e |ong Writ|eLuminan|
|000001b0| 63 65 52 65 63 6f 72 64 | 28 63 68 61 72 20 2a 66 |ceRecord|(char *f|
|000001c0| 69 6c 65 6e 61 6d 65 2c | 4c 75 6d 69 6e 61 6e 63 |ilename,|Luminanc|
|000001d0| 65 52 65 63 6f 72 64 20 | 2a 4c 50 2c 73 68 6f 72 |eRecord |*LP,shor|
|000001e0| 74 20 66 6c 61 67 73 29 | 3b 0d 57 72 69 74 65 73 |t flags)|;.Writes|
|000001f0| 20 28 61 6e 64 20 76 65 | 72 69 66 69 65 73 29 20 | (and ve|rifies) |
|00000200| 61 20 4c 75 6d 69 6e 61 | 6e 63 65 52 65 63 6f 72 |a Lumina|nceRecor|
|00000210| 64 2c 20 61 70 70 65 6e | 64 69 6e 67 20 74 6f 20 |d, appen|ding to |
|00000220| 74 68 65 20 66 69 6c 65 | 2e 0d 0d 09 44 65 73 63 |the file|....Desc|
|00000230| 72 69 70 74 69 6f 6e 20 | 2a 44 65 73 63 72 69 62 |ription |*Describ|
|00000240| 65 4c 75 6d 69 6e 61 6e | 63 65 52 65 63 6f 72 64 |eLuminan|ceRecord|
|00000250| 28 4c 75 6d 69 6e 61 6e | 63 65 52 65 63 6f 72 64 |(Luminan|ceRecord|
|00000260| 20 2a 4c 50 29 3b 0d 43 | 72 65 61 74 65 73 20 61 | *LP);.C|reates a|
|00000270| 20 44 65 73 63 72 69 70 | 74 69 6f 6e 20 61 72 72 | Descrip|tion arr|
|00000280| 61 79 20 74 6f 20 72 65 | 61 64 20 61 6e 64 20 77 |ay to re|ad and w|
|00000290| 72 69 74 65 20 4c 75 6d | 69 6e 61 6e 63 65 52 65 |rite Lum|inanceRe|
|000002a0| 63 6f 72 64 20 61 73 73 | 69 67 6e 6d 65 6e 74 20 |cord ass|ignment |
|000002b0| 66 69 6c 65 73 2e 0d 0d | 0d 48 49 53 54 4f 52 59 |files...|.HISTORY|
|000002c0| 3a 0d 37 2f 32 39 2f 39 | 31 20 64 67 70 0d 38 2f |:.7/29/9|1 dgp.8/|
|000002d0| 32 34 2f 39 31 09 64 67 | 70 09 4d 61 64 65 20 63 |24/91.dg|p.Made c|
|000002e0| 6f 6d 70 61 74 69 62 6c | 65 20 77 69 74 68 20 54 |ompatibl|e with T|
|000002f0| 48 49 4e 4b 20 43 20 35 | 2e 30 2e 0d 09 09 09 50 |HINK C 5|.0.....P|
|00000300| 72 65 73 65 72 76 65 20 | 64 65 66 61 75 6c 74 20 |reserve |default |
|00000310| 76 61 6c 75 65 73 20 6f | 66 20 4c 50 2d 3e 56 4d |values o|f LP->VM|
|00000320| 69 6e 20 61 6e 64 20 4c | 50 2d 3e 56 4d 61 78 20 |in and L|P->VMax |
|00000330| 69 66 20 6e 6f 20 6e 65 | 77 20 76 61 6c 75 65 73 |if no ne|w values|
|00000340| 20 61 72 65 20 72 65 61 | 64 2e 0d 38 2f 32 36 2f | are rea|d..8/26/|
|00000350| 39 31 09 64 67 70 09 52 | 65 77 72 6f 74 65 20 75 |91.dgp.R|ewrote u|
|00000360| 73 69 6e 67 20 6e 65 77 | 20 53 65 74 56 61 72 69 |sing new| SetVari|
|00000370| 61 62 6c 65 28 29 20 72 | 6f 75 74 69 6e 65 2c 20 |able() r|outine, |
|00000380| 77 68 69 63 68 20 6d 61 | 6b 65 73 20 74 68 65 20 |which ma|kes the |
|00000390| 63 6f 64 65 20 65 61 73 | 69 65 72 20 74 6f 0d 09 |code eas|ier to..|
|000003a0| 09 09 72 65 61 64 2e 20 | 0d 31 32 2f 31 37 2f 39 |..read. |.12/17/9|
|000003b0| 32 20 64 67 70 20 41 64 | 64 65 64 20 64 61 63 53 |2 dgp Ad|ded dacS|
|000003c0| 69 7a 65 2e 0d 31 32 2f | 32 31 2f 39 32 20 64 67 |ize..12/|21/92 dg|
|000003d0| 70 20 43 68 61 6e 67 65 | 64 20 74 79 70 65 20 6f |p Change|d type o|
|000003e0| 66 20 64 61 63 53 69 7a | 65 20 66 72 6f 6d 20 6c |f dacSiz|e from l|
|000003f0| 6f 6e 67 20 74 6f 20 73 | 68 6f 72 74 2e 0d 36 2f |ong to s|hort..6/|
|00000400| 33 2f 39 33 09 64 67 70 | 09 55 70 64 61 74 65 64 |3/93.dgp|.Updated|
|00000410| 20 74 6f 20 77 6f 72 6b | 20 77 69 74 68 20 6e 65 | to work| with ne|
|00000420| 77 20 41 73 73 69 67 6e | 2e 63 2e 20 0d 09 09 09 |w Assign|.c. ....|
|00000430| 43 72 65 61 74 65 64 20 | 44 65 73 63 72 69 62 65 |Created |Describe|
|00000440| 4c 75 6d 69 6e 61 6e 63 | 65 52 65 63 6f 72 64 41 |Luminanc|eRecordA|
|00000450| 73 73 69 67 6e 6d 65 6e | 74 28 29 20 61 6e 64 20 |ssignmen|t() and |
|00000460| 57 72 69 74 65 4c 75 6d | 69 6e 61 6e 63 65 52 65 |WriteLum|inanceRe|
|00000470| 63 6f 72 64 28 29 2e 0d | 38 2f 31 32 2f 39 33 09 |cord()..|8/12/93.|
|00000480| 64 67 70 09 52 65 6e 61 | 6d 65 64 20 72 6f 75 74 |dgp.Rena|med rout|
|00000490| 69 6e 65 73 20 74 6f 20 | 62 65 20 63 6f 6e 73 69 |ines to |be consi|
|000004a0| 73 74 65 6e 74 20 77 69 | 74 68 20 6e 65 77 20 41 |stent wi|th new A|
|000004b0| 73 73 69 67 6e 2e 63 2e | 0d 09 09 09 52 65 6e 61 |ssign.c.|....Rena|
|000004c0| 6d 65 64 20 22 44 65 73 | 63 72 69 62 65 4c 75 6d |med "Des|cribeLum|
|000004d0| 69 6e 61 6e 63 65 52 65 | 63 6f 72 64 41 73 73 69 |inanceRe|cordAssi|
|000004e0| 67 6e 6d 65 6e 74 22 20 | 74 6f 20 22 44 65 73 63 |gnment" |to "Desc|
|000004f0| 72 69 62 65 4c 75 6d 69 | 6e 61 6e 63 65 52 65 63 |ribeLumi|nanceRec|
|00000500| 6f 72 64 22 2e 0d 33 2f | 34 2f 39 34 09 64 67 70 |ord"..3/|4/94.dgp|
|00000510| 20 52 65 61 64 4c 75 6d | 69 6e 61 6e 63 65 52 65 | ReadLum|inanceRe|
|00000520| 63 6f 72 64 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 69 |cord no |longer i|
|00000530| 6e 69 74 69 61 6c 69 7a | 65 73 2e 20 41 64 64 65 |nitializ|es. Adde|
|00000540| 64 20 49 6e 69 74 69 61 | 6c 69 7a 65 4c 75 6d 69 |d Initia|lizeLumi|
|00000550| 6e 61 6e 63 65 52 65 63 | 6f 72 64 2e 0d 2a 2f 0d |nanceRec|ord..*/.|
|00000560| 0d 23 69 6e 63 6c 75 64 | 65 20 22 56 69 64 65 6f |.#includ|e "Video|
|00000570| 54 6f 6f 6c 62 6f 78 2e | 68 22 0d 23 69 6e 63 6c |Toolbox.|h".#incl|
|00000580| 75 64 65 20 22 4c 75 6d | 69 6e 61 6e 63 65 2e 68 |ude "Lum|inance.h|
|00000590| 22 0d 23 69 6e 63 6c 75 | 64 65 20 3c 61 73 73 65 |".#inclu|de <asse|
|000005a0| 72 74 2e 68 3e 0d 23 64 | 65 66 69 6e 65 20 56 41 |rt.h>.#d|efine VA|
|000005b0| 52 49 41 42 4c 45 53 20 | 33 32 0d 6c 6f 6e 67 20 |RIABLES |32.long |
|000005c0| 49 6e 69 74 69 61 6c 69 | 7a 65 4c 75 6d 69 6e 61 |Initiali|zeLumina|
|000005d0| 6e 63 65 52 65 63 6f 72 | 64 28 4c 75 6d 69 6e 61 |nceRecor|d(Lumina|
|000005e0| 6e 63 65 52 65 63 6f 72 | 64 20 2a 4c 50 2c 73 68 |nceRecor|d *LP,sh|
|000005f0| 6f 72 74 20 66 6c 61 67 | 73 29 3b 0d 0d 6c 6f 6e |ort flag|s);..lon|
|00000600| 67 20 49 6e 69 74 69 61 | 6c 69 7a 65 4c 75 6d 69 |g Initia|lizeLumi|
|00000610| 6e 61 6e 63 65 52 65 63 | 6f 72 64 28 4c 75 6d 69 |nanceRec|ord(Lumi|
|00000620| 6e 61 6e 63 65 52 65 63 | 6f 72 64 20 2a 4c 50 2c |nanceRec|ord *LP,|
|00000630| 73 68 6f 72 74 20 66 6c | 61 67 73 29 0d 7b 0d 09 |short fl|ags).{..|
|00000640| 44 65 73 63 72 69 70 74 | 69 6f 6e 20 2a 64 3b 0d |Descript|ion *d;.|
|00000650| 09 6c 6f 6e 67 20 6e 3b | 0d 0d 09 64 3d 44 65 73 |.long n;|...d=Des|
|00000660| 63 72 69 62 65 4c 75 6d | 69 6e 61 6e 63 65 52 65 |cribeLum|inanceRe|
|00000670| 63 6f 72 64 28 4c 50 29 | 3b 0d 09 69 66 28 64 3d |cord(LP)|;..if(d=|
|00000680| 3d 4e 55 4c 4c 29 7b 0d | 09 09 69 66 28 66 6c 61 |=NULL){.|..if(fla|
|00000690| 67 73 26 61 73 73 69 67 | 6e 4e 6f 50 72 69 6e 74 |gs&assig|nNoPrint|
|000006a0| 66 45 78 69 74 29 72 65 | 74 75 72 6e 20 61 73 73 |fExit)re|turn ass|
|000006b0| 69 67 6e 4d 65 6d 6f 72 | 79 45 72 72 6f 72 3b 0d |ignMemor|yError;.|
|000006c0| 09 09 65 6c 73 65 20 50 | 72 69 6e 74 66 45 78 69 |..else P|rintfExi|
|000006d0| 74 28 22 5c 49 6e 69 74 | 69 61 6c 69 7a 65 4c 75 |t("\Init|ializeLu|
|000006e0| 6d 69 6e 61 6e 63 65 52 | 65 63 6f 72 64 3a 20 6e |minanceR|ecord: n|
|000006f0| 6f 20 72 6f 6f 6d 20 66 | 6f 72 20 56 61 72 69 61 |o room f|or Varia|
|00000700| 62 6c 65 73 2e 5c 6e 5c | 30 30 37 22 29 3b 0d 09 |bles.\n\|007");..|
|00000710| 7d 0d 09 6e 3d 49 6e 69 | 74 69 61 6c 69 7a 65 44 |}..n=Ini|tializeD|
|00000720| 65 73 63 72 69 62 65 64 | 56 61 72 73 28 64 2c 66 |escribed|Vars(d,f|
|00000730| 6c 61 67 73 29 3b 0d 09 | 4c 50 2d 3e 64 61 63 53 |lags);..|LP->dacS|
|00000740| 69 7a 65 3d 38 3b 09 09 | 09 09 09 2f 2a 20 20 64 |ize=8;..|.../* d|
|00000750| 65 66 61 75 6c 74 20 76 | 61 6c 75 65 20 2a 2f 0d |efault v|alue */.|
|00000760| 09 66 72 65 65 28 64 29 | 3b 0d 09 72 65 74 75 72 |.free(d)|;..retur|
|00000770| 6e 20 6e 3b 0d 7d 0d 0d | 6c 6f 6e 67 20 52 65 61 |n n;.}..|long Rea|
|00000780| 64 4c 75 6d 69 6e 61 6e | 63 65 52 65 63 6f 72 64 |dLuminan|ceRecord|
|00000790| 28 63 68 61 72 20 2a 66 | 69 6c 65 6e 61 6d 65 2c |(char *f|ilename,|
|000007a0| 4c 75 6d 69 6e 61 6e 63 | 65 52 65 63 6f 72 64 20 |Luminanc|eRecord |
|000007b0| 2a 4c 50 2c 73 68 6f 72 | 74 20 66 6c 61 67 73 29 |*LP,shor|t flags)|
|000007c0| 0d 7b 0d 09 44 65 73 63 | 72 69 70 74 69 6f 6e 20 |.{..Desc|ription |
|000007d0| 2a 64 3b 0d 09 6c 6f 6e | 67 20 6e 3b 0d 0d 09 64 |*d;..lon|g n;...d|
|000007e0| 3d 44 65 73 63 72 69 62 | 65 4c 75 6d 69 6e 61 6e |=Describ|eLuminan|
|000007f0| 63 65 52 65 63 6f 72 64 | 28 4c 50 29 3b 0d 09 69 |ceRecord|(LP);..i|
|00000800| 66 28 64 3d 3d 4e 55 4c | 4c 29 7b 0d 09 09 69 66 |f(d==NUL|L){...if|
|00000810| 28 66 6c 61 67 73 26 61 | 73 73 69 67 6e 4e 6f 50 |(flags&a|ssignNoP|
|00000820| 72 69 6e 74 66 45 78 69 | 74 29 72 65 74 75 72 6e |rintfExi|t)return|
|00000830| 20 61 73 73 69 67 6e 4d | 65 6d 6f 72 79 45 72 72 | assignM|emoryErr|
|00000840| 6f 72 3b 0d 09 09 65 6c | 73 65 20 50 72 69 6e 74 |or;...el|se Print|
|00000850| 66 45 78 69 74 28 22 5c | 6e 52 65 61 64 4c 75 6d |fExit("\|nReadLum|
|00000860| 69 6e 61 6e 63 65 52 65 | 63 6f 72 64 3a 20 6e 6f |inanceRe|cord: no|
|00000870| 20 72 6f 6f 6d 20 66 6f | 72 20 56 61 72 69 61 62 | room fo|r Variab|
|00000880| 6c 65 73 2e 5c 6e 5c 30 | 30 37 22 29 3b 0d 09 7d |les.\n\0|07");..}|
|00000890| 0d 2f 2f 09 6e 3d 49 6e | 69 74 69 61 6c 69 7a 65 |.//.n=In|itialize|
|000008a0| 44 65 73 63 72 69 62 65 | 64 56 61 72 73 28 64 2c |Describe|dVars(d,|
|000008b0| 66 6c 61 67 73 29 3b 0d | 09 4c 50 2d 3e 64 61 63 |flags);.|.LP->dac|
|000008c0| 53 69 7a 65 3d 38 3b 09 | 09 09 09 09 2f 2a 20 20 |Size=8;.|..../* |
|000008d0| 64 65 66 61 75 6c 74 20 | 76 61 6c 75 65 20 2a 2f |default |value */|
|000008e0| 0d 09 6e 3d 52 65 61 64 | 41 73 73 69 67 6e 6d 65 |..n=Read|Assignme|
|000008f0| 6e 74 46 69 6c 65 28 66 | 69 6c 65 6e 61 6d 65 2c |ntFile(f|ilename,|
|00000900| 64 2c 66 6c 61 67 73 29 | 3b 0d 09 66 72 65 65 28 |d,flags)|;..free(|
|00000910| 64 29 3b 0d 09 72 65 74 | 75 72 6e 20 6e 3b 0d 7d |d);..ret|urn n;.}|
|00000920| 0d 0d 6c 6f 6e 67 20 57 | 72 69 74 65 4c 75 6d 69 |..long W|riteLumi|
|00000930| 6e 61 6e 63 65 52 65 63 | 6f 72 64 28 63 68 61 72 |nanceRec|ord(char|
|00000940| 20 2a 66 69 6c 65 6e 61 | 6d 65 2c 4c 75 6d 69 6e | *filena|me,Lumin|
|00000950| 61 6e 63 65 52 65 63 6f | 72 64 20 2a 4c 50 2c 73 |anceReco|rd *LP,s|
|00000960| 68 6f 72 74 20 66 6c 61 | 67 73 29 0d 7b 0d 09 44 |hort fla|gs).{..D|
|00000970| 65 73 63 72 69 70 74 69 | 6f 6e 20 2a 64 3d 4e 55 |escripti|on *d=NU|
|00000980| 4c 4c 2c 2a 64 32 3d 4e | 55 4c 4c 3b 0d 09 4c 75 |LL,*d2=N|ULL;..Lu|
|00000990| 6d 69 6e 61 6e 63 65 52 | 65 63 6f 72 64 20 2a 4c |minanceR|ecord *L|
|000009a0| 50 32 3d 4e 55 4c 4c 3b | 0d 09 6c 6f 6e 67 20 6e |P2=NULL;|..long n|
|000009b0| 2c 6d 3b 0d 0d 09 2f 2a | 20 20 57 72 69 74 65 20 |,m;.../*| Write |
|000009c0| 2a 2f 0d 09 64 3d 44 65 | 73 63 72 69 62 65 4c 75 |*/..d=De|scribeLu|
|000009d0| 6d 69 6e 61 6e 63 65 52 | 65 63 6f 72 64 28 4c 50 |minanceR|ecord(LP|
|000009e0| 29 3b 0d 09 69 66 28 64 | 3d 3d 4e 55 4c 4c 29 7b |);..if(d|==NULL){|
|000009f0| 0d 09 09 6e 3d 61 73 73 | 69 67 6e 4d 65 6d 6f 72 |...n=ass|ignMemor|
|00000a00| 79 45 72 72 6f 72 3b 0d | 09 09 69 66 28 66 6c 61 |yError;.|..if(fla|
|00000a10| 67 73 26 61 73 73 69 67 | 6e 4e 6f 50 72 69 6e 74 |gs&assig|nNoPrint|
|00000a20| 66 45 78 69 74 29 67 6f | 74 6f 20 64 6f 6e 65 3b |fExit)go|to done;|
|00000a30| 0d 09 09 65 6c 73 65 20 | 50 72 69 6e 74 66 45 78 |...else |PrintfEx|
|00000a40| 69 74 28 22 5c 6e 57 72 | 69 74 65 4c 75 6d 69 6e |it("\nWr|iteLumin|
|00000a50| 61 6e 63 65 52 65 63 6f | 72 64 3a 20 6e 6f 20 72 |anceReco|rd: no r|
|00000a60| 6f 6f 6d 20 66 6f 72 20 | 56 61 72 69 61 62 6c 65 |oom for |Variable|
|00000a70| 73 2e 5c 6e 5c 30 30 37 | 22 29 3b 0d 09 7d 0d 09 |s.\n\007|");..}..|
|00000a80| 6e 3d 50 72 69 6e 74 41 | 73 73 69 67 6e 6d 65 6e |n=PrintA|ssignmen|
|00000a90| 74 73 54 6f 46 69 6c 65 | 28 66 69 6c 65 6e 61 6d |tsToFile|(filenam|
|00000aa0| 65 2c 64 2c 66 6c 61 67 | 73 29 3b 0d 09 53 65 74 |e,d,flag|s);..Set|
|00000ab0| 46 69 6c 65 49 6e 66 6f | 28 66 69 6c 65 6e 61 6d |FileInfo|(filenam|
|00000ac0| 65 2c 27 54 45 58 54 27 | 2c 27 4b 41 48 4c 27 29 |e,'TEXT'|,'KAHL')|
|00000ad0| 3b 0d 09 69 66 28 6e 3c | 30 29 67 6f 74 6f 20 64 |;..if(n<|0)goto d|
|00000ae0| 6f 6e 65 3b 0d 09 0d 09 | 2f 2a 20 20 56 65 72 69 |one;....|/* Veri|
|00000af0| 66 79 20 2a 2f 0d 09 4c | 50 32 3d 28 4c 75 6d 69 |fy */..L|P2=(Lumi|
|00000b00| 6e 61 6e 63 65 52 65 63 | 6f 72 64 20 2a 29 6d 61 |nanceRec|ord *)ma|
|00000b10| 6c 6c 6f 63 28 73 69 7a | 65 6f 66 28 4c 75 6d 69 |lloc(siz|eof(Lumi|
|00000b20| 6e 61 6e 63 65 52 65 63 | 6f 72 64 29 29 3b 0d 09 |nanceRec|ord));..|
|00000b30| 69 66 28 4c 50 32 3d 3d | 4e 55 4c 4c 29 7b 0d 09 |if(LP2==|NULL){..|
|00000b40| 09 6e 3d 61 73 73 69 67 | 6e 4d 65 6d 6f 72 79 45 |.n=assig|nMemoryE|
|00000b50| 72 72 6f 72 3b 0d 09 09 | 69 66 28 66 6c 61 67 73 |rror;...|if(flags|
|00000b60| 26 61 73 73 69 67 6e 4e | 6f 50 72 69 6e 74 66 45 |&assignN|oPrintfE|
|00000b70| 78 69 74 29 67 6f 74 6f | 20 64 6f 6e 65 3b 0d 09 |xit)goto| done;..|
|00000b80| 09 65 6c 73 65 20 50 72 | 69 6e 74 66 45 78 69 74 |.else Pr|intfExit|
|00000b90| 28 22 5c 6e 57 72 69 74 | 65 4c 75 6d 69 6e 61 6e |("\nWrit|eLuminan|
|00000ba0| 63 65 52 65 63 6f 72 64 | 3a 20 6e 6f 20 72 6f 6f |ceRecord|: no roo|
|00000bb0| 6d 20 66 6f 72 20 4c 75 | 6d 69 6e 61 6e 63 65 52 |m for Lu|minanceR|
|00000bc0| 65 63 6f 72 64 2e 5c 6e | 5c 30 30 37 22 29 3b 0d |ecord.\n|\007");.|
|00000bd0| 09 7d 0d 09 64 32 3d 44 | 65 73 63 72 69 62 65 4c |.}..d2=D|escribeL|
|00000be0| 75 6d 69 6e 61 6e 63 65 | 52 65 63 6f 72 64 28 4c |uminance|Record(L|
|00000bf0| 50 32 29 3b 0d 09 69 66 | 28 64 32 3d 3d 4e 55 4c |P2);..if|(d2==NUL|
|00000c00| 4c 29 7b 0d 09 09 6e 3d | 61 73 73 69 67 6e 4d 65 |L){...n=|assignMe|
|00000c10| 6d 6f 72 79 45 72 72 6f | 72 3b 0d 09 09 69 66 28 |moryErro|r;...if(|
|00000c20| 66 6c 61 67 73 26 61 73 | 73 69 67 6e 4e 6f 50 72 |flags&as|signNoPr|
|00000c30| 69 6e 74 66 45 78 69 74 | 29 67 6f 74 6f 20 64 6f |intfExit|)goto do|
|00000c40| 6e 65 3b 0d 09 09 65 6c | 73 65 20 50 72 69 6e 74 |ne;...el|se Print|
|00000c50| 66 45 78 69 74 28 22 5c | 6e 57 72 69 74 65 4c 75 |fExit("\|nWriteLu|
|00000c60| 6d 69 6e 61 6e 63 65 52 | 65 63 6f 72 64 3a 20 6e |minanceR|ecord: n|
|00000c70| 6f 20 72 6f 6f 6d 20 66 | 6f 72 20 56 61 72 69 61 |o room f|or Varia|
|00000c80| 62 6c 65 73 2e 5c 6e 5c | 30 30 37 22 29 3b 0d 09 |bles.\n\|007");..|
|00000c90| 7d 0d 09 6d 3d 52 65 61 | 64 41 73 73 69 67 6e 6d |}..m=Rea|dAssignm|
|00000ca0| 65 6e 74 46 69 6c 65 28 | 66 69 6c 65 6e 61 6d 65 |entFile(|filename|
|00000cb0| 2c 64 32 2c 66 6c 61 67 | 73 7c 61 73 73 69 67 6e |,d2,flag|s|assign|
|00000cc0| 52 65 70 6f 72 74 55 6e | 6b 6e 6f 77 6e 29 3b 0d |ReportUn|known);.|
|00000cd0| 09 69 66 28 6d 3c 30 29 | 7b 0d 09 09 6e 3d 6d 3b |.if(m<0)|{...n=m;|
|00000ce0| 0d 09 09 67 6f 74 6f 20 | 64 6f 6e 65 3b 0d 09 7d |...goto |done;..}|
|00000cf0| 0d 09 6d 3d 55 6e 65 71 | 75 61 6c 44 65 73 63 72 |..m=Uneq|ualDescr|
|00000d00| 69 62 65 64 56 61 72 73 | 28 64 2c 64 32 2c 66 6c |ibedVars|(d,d2,fl|
|00000d10| 61 67 73 29 3b 0d 09 69 | 66 28 6d 3c 30 29 7b 0d |ags);..i|f(m<0){.|
|00000d20| 09 09 6e 3d 6d 3b 0d 09 | 09 67 6f 74 6f 20 64 6f |..n=m;..|.goto do|
|00000d30| 6e 65 3b 0d 09 7d 0d 64 | 6f 6e 65 3a 0d 09 69 66 |ne;..}.d|one:..if|
|00000d40| 28 64 32 21 3d 4e 55 4c | 4c 29 66 72 65 65 28 64 |(d2!=NUL|L)free(d|
|00000d50| 32 29 3b 0d 09 69 66 28 | 4c 50 32 21 3d 4e 55 4c |2);..if(|LP2!=NUL|
|00000d60| 4c 29 66 72 65 65 28 4c | 50 32 29 3b 0d 09 69 66 |L)free(L|P2);..if|
|00000d70| 28 64 21 3d 4e 55 4c 4c | 29 66 72 65 65 28 64 29 |(d!=NULL|)free(d)|
|00000d80| 3b 0d 09 72 65 74 75 72 | 6e 20 6e 3b 0d 7d 0d 0d |;..retur|n n;.}..|
|00000d90| 44 65 73 63 72 69 70 74 | 69 6f 6e 20 2a 44 65 73 |Descript|ion *Des|
|00000da0| 63 72 69 62 65 4c 75 6d | 69 6e 61 6e 63 65 52 65 |cribeLum|inanceRe|
|00000db0| 63 6f 72 64 28 4c 75 6d | 69 6e 61 6e 63 65 52 65 |cord(Lum|inanceRe|
|00000dc0| 63 6f 72 64 20 2a 4c 50 | 29 0d 7b 0d 09 44 65 73 |cord *LP|).{..Des|
|00000dd0| 63 72 69 70 74 69 6f 6e | 20 2a 64 3b 0d 09 69 6e |cription| *d;..in|
|00000de0| 74 20 6a 3b 0d 0d 09 64 | 3d 28 44 65 73 63 72 69 |t j;...d|=(Descri|
|00000df0| 70 74 69 6f 6e 20 2a 29 | 6d 61 6c 6c 6f 63 28 56 |ption *)|malloc(V|
|00000e00| 41 52 49 41 42 4c 45 53 | 2a 73 69 7a 65 6f 66 28 |ARIABLES|*sizeof(|
|00000e10| 44 65 73 63 72 69 70 74 | 69 6f 6e 29 29 3b 0d 09 |Descript|ion));..|
|00000e20| 69 66 28 64 3d 3d 4e 55 | 4c 4c 29 72 65 74 75 72 |if(d==NU|LL)retur|
|00000e30| 6e 20 4e 55 4c 4c 3b 0d | 09 6a 3d 30 3b 0d 09 64 |n NULL;.|.j=0;..d|
|00000e40| 5b 6a 2b 2b 5d 3d 44 65 | 73 63 72 69 62 65 28 73 |[j++]=De|scribe(s|
|00000e50| 68 6f 72 74 54 79 70 65 | 2c 26 4c 50 2d 3e 73 63 |hortType|,&LP->sc|
|00000e60| 72 65 65 6e 2c 22 4c 52 | 2e 73 63 72 65 65 6e 22 |reen,"LR|.screen"|
|00000e70| 0d 09 09 2c 22 64 65 76 | 69 63 65 3d 47 65 74 53 |...,"dev|ice=GetS|
|00000e80| 63 72 65 65 6e 44 65 76 | 69 63 65 28 4c 52 2e 73 |creenDev|ice(LR.s|
|00000e90| 63 72 65 65 6e 29 3b 22 | 29 3b 0d 09 64 5b 6a 2b |creen);"|);..d[j+|
|00000ea0| 2b 5d 3d 44 65 73 63 72 | 69 62 65 28 73 74 72 69 |+]=Descr|ibe(stri|
|00000eb0| 6e 67 54 79 70 65 2c 26 | 4c 50 2d 3e 69 64 2c 22 |ngType,&|LP->id,"|
|00000ec0| 4c 52 2e 69 64 22 2c 4e | 55 4c 4c 29 3b 0d 09 64 |LR.id",N|ULL);..d|
|00000ed0| 5b 6a 2b 2b 5d 3d 44 65 | 73 63 72 69 62 65 28 73 |[j++]=De|scribe(s|
|00000ee0| 74 72 69 6e 67 54 79 70 | 65 2c 26 4c 50 2d 3e 6e |tringTyp|e,&LP->n|
|00000ef0| 61 6d 65 2c 22 4c 52 2e | 6e 61 6d 65 22 2c 4e 55 |ame,"LR.|name",NU|
|00000f00| 4c 4c 29 3b 0d 09 64 5b | 6a 2b 2b 5d 3d 44 65 73 |LL);..d[|j++]=Des|
|00000f10| 63 72 69 62 65 28 73 74 | 72 69 6e 67 54 79 70 65 |cribe(st|ringType|
|00000f20| 2c 26 4c 50 2d 3e 64 61 | 74 65 2c 22 4c 52 2e 64 |,&LP->da|te,"LR.d|
|00000f30| 61 74 65 22 2c 4e 55 4c | 4c 29 3b 0d 09 64 5b 6a |ate",NUL|L);..d[j|
|00000f40| 2b 2b 5d 3d 44 65 73 63 | 72 69 62 65 28 73 74 72 |++]=Desc|ribe(str|
|00000f50| 69 6e 67 54 79 70 65 2c | 26 4c 50 2d 3e 6e 6f 74 |ingType,|&LP->not|
|00000f60| 65 73 2c 22 4c 52 2e 6e | 6f 74 65 73 22 2c 4e 55 |es,"LR.n|otes",NU|
|00000f70| 4c 4c 29 3b 0d 09 64 5b | 6a 2b 2b 5d 3d 44 65 73 |LL);..d[|j++]=Des|
|00000f80| 63 72 69 62 65 28 73 68 | 6f 72 74 54 79 70 65 2c |cribe(sh|ortType,|
|00000f90| 26 4c 50 2d 3e 64 61 63 | 53 69 7a 65 2c 22 4c 52 |&LP->dac|Size,"LR|
|00000fa0| 2e 64 61 63 53 69 7a 65 | 22 2c 4e 55 4c 4c 29 3b |.dacSize|",NULL);|
|00000fb0| 0d 09 64 5b 6a 2b 2b 5d | 3d 44 65 73 63 72 69 62 |..d[j++]|=Describ|
|00000fc0| 65 28 64 6f 75 62 6c 65 | 54 79 70 65 2c 26 4c 50 |e(double|Type,&LP|
|00000fd0| 2d 3e 4c 4d 69 6e 2c 22 | 4c 52 2e 4c 4d 69 6e 22 |->LMin,"|LR.LMin"|
|00000fe0| 2c 22 6c 75 6d 69 6e 61 | 6e 63 65 20 61 74 20 56 |,"lumina|nce at V|
|00000ff0| 4d 69 6e 22 29 3b 0d 09 | 64 5b 6a 2b 2b 5d 3d 44 |Min");..|d[j++]=D|
|00001000| 65 73 63 72 69 62 65 28 | 64 6f 75 62 6c 65 54 79 |escribe(|doubleTy|
|00001010| 70 65 2c 26 4c 50 2d 3e | 4c 4d 61 78 2c 22 4c 52 |pe,&LP->|LMax,"LR|
|00001020| 2e 4c 4d 61 78 22 0d 09 | 09 2c 22 6c 75 6d 69 6e |.LMax"..|.,"lumin|
|00001030| 61 6e 63 65 20 61 74 20 | 56 4d 61 78 22 29 3b 0d |ance at |VMax");.|
|00001040| 09 64 5b 6a 2b 2b 5d 3d | 44 65 73 63 72 69 62 65 |.d[j++]=|Describe|
|00001050| 28 64 6f 75 62 6c 65 54 | 79 70 65 2c 26 4c 50 2d |(doubleT|ype,&LP-|
|00001060| 3e 4c 42 61 63 6b 67 72 | 6f 75 6e 64 2c 22 4c 52 |>LBackgr|ound,"LR|
|00001070| 2e 4c 42 61 63 6b 67 72 | 6f 75 6e 64 22 0d 09 09 |.LBackgr|ound"...|
|00001080| 2c 22 62 61 63 6b 67 72 | 6f 75 6e 64 20 6c 75 6d |,"backgr|ound lum|
|00001090| 69 6e 61 6e 63 65 20 64 | 75 72 69 6e 67 20 63 61 |inance d|uring ca|
|000010a0| 6c 69 62 72 61 74 69 6f | 6e 22 29 3b 0d 09 64 5b |libratio|n");..d[|
|000010b0| 6a 2b 2b 5d 3d 44 65 73 | 63 72 69 62 65 28 73 68 |j++]=Des|cribe(sh|
|000010c0| 6f 72 74 54 79 70 65 2c | 26 4c 50 2d 3e 56 42 61 |ortType,|&LP->VBa|
|000010d0| 63 6b 67 72 6f 75 6e 64 | 2c 22 4c 52 2e 56 42 61 |ckground|,"LR.VBa|
|000010e0| 63 6b 67 72 6f 75 6e 64 | 22 0d 09 09 2c 22 62 61 |ckground|"...,"ba|
|000010f0| 63 6b 67 72 6f 75 6e 64 | 20 6e 75 6d 62 65 72 20 |ckground| number |
|00001100| 75 73 65 64 20 64 75 72 | 69 6e 67 20 63 61 6c 69 |used dur|ing cali|
|00001110| 62 72 61 74 69 6f 6e 22 | 29 3b 0d 09 64 5b 6a 2b |bration"|);..d[j+|
|00001120| 2b 5d 3d 44 65 73 63 72 | 69 62 65 28 64 6f 75 62 |+]=Descr|ibe(doub|
|00001130| 6c 65 54 79 70 65 2c 26 | 4c 50 2d 3e 64 70 69 2c |leType,&|LP->dpi,|
|00001140| 22 4c 52 2e 64 70 69 22 | 2c 22 70 69 78 65 6c 73 |"LR.dpi"|,"pixels|
|00001150| 2f 69 6e 63 68 22 29 3b | 0d 09 64 5b 6a 2b 2b 5d |/inch");|..d[j++]|
|00001160| 3d 44 65 73 63 72 69 62 | 65 28 64 6f 75 62 6c 65 |=Describ|e(double|
|00001170| 54 79 70 65 2c 26 4c 50 | 2d 3e 48 7a 2c 22 4c 52 |Type,&LP|->Hz,"LR|
|00001180| 2e 48 7a 22 2c 22 66 72 | 61 6d 65 73 2f 73 65 63 |.Hz","fr|ames/sec|
|00001190| 6f 6e 64 22 29 3b 0d 09 | 64 5b 6a 2b 2b 5d 3d 44 |ond");..|d[j++]=D|
|000011a0| 65 73 63 72 69 62 65 28 | 73 74 72 69 6e 67 54 79 |escribe(|stringTy|
|000011b0| 70 65 2c 26 4c 50 2d 3e | 75 6e 69 74 73 2c 22 4c |pe,&LP->|units,"L|
|000011c0| 52 2e 75 6e 69 74 73 22 | 2c 4e 55 4c 4c 29 3b 0d |R.units"|,NULL);.|
|000011d0| 09 64 5b 6a 2b 2b 5d 3d | 44 65 73 63 72 69 62 65 |.d[j++]=|Describe|
|000011e0| 28 6c 6f 6e 67 54 79 70 | 65 2c 26 4c 50 2d 3e 63 |(longTyp|e,&LP->c|
|000011f0| 6f 65 66 66 69 63 69 65 | 6e 74 73 2c 22 4c 52 2e |oefficie|nts,"LR.|
|00001200| 63 6f 65 66 66 69 63 69 | 65 6e 74 73 22 0d 09 09 |coeffici|ents"...|
|00001210| 2c 22 23 20 6f 66 20 63 | 6f 65 66 66 69 63 69 65 |,"# of c|oefficie|
|00001220| 6e 74 73 20 69 6e 20 70 | 6f 6c 79 6e 6f 6d 69 61 |nts in p|olynomia|
|00001230| 6c 20 66 69 74 22 29 3b | 0d 09 64 5b 6a 2b 2b 5d |l fit");|..d[j++]|
|00001240| 3d 44 65 73 63 72 69 62 | 65 41 72 72 61 79 28 64 |=Describ|eArray(d|
|00001250| 6f 75 62 6c 65 54 79 70 | 65 2c 26 4c 50 2d 3e 70 |oubleTyp|e,&LP->p|
|00001260| 2c 22 4c 52 2e 70 22 0d | 09 09 2c 22 4c 28 56 29 |,"LR.p".|..,"L(V)|
|00001270| 3d 70 5b 30 5d 2b 70 5b | 31 5d 2a 56 2b 70 5b 32 |=p[0]+p[|1]*V+p[2|
|00001280| 5d 2a 56 2a 56 2b 20 2e | 20 2e 20 2e 20 b1 70 6f |]*V*V+ .| . . .po|
|00001290| 6c 79 6e 6f 6d 69 61 6c | 45 72 72 6f 72 22 0d 09 |lynomial|Error"..|
|000012a0| 09 2c 73 69 7a 65 6f 66 | 28 4c 50 2d 3e 70 29 2f |.,sizeof|(LP->p)/|
|000012b0| 73 69 7a 65 6f 66 28 4c | 50 2d 3e 70 5b 30 5d 29 |sizeof(L|P->p[0])|
|000012c0| 2c 30 4c 29 3b 0d 09 64 | 5b 6a 2b 2b 5d 3d 44 65 |,0L);..d|[j++]=De|
|000012d0| 73 63 72 69 62 65 28 64 | 6f 75 62 6c 65 54 79 70 |scribe(d|oubleTyp|
|000012e0| 65 2c 26 4c 50 2d 3e 70 | 6f 6c 79 6e 6f 6d 69 61 |e,&LP->p|olynomia|
|000012f0| 6c 45 72 72 6f 72 2c 22 | 4c 52 2e 70 6f 6c 79 6e |lError,"|LR.polyn|
|00001300| 6f 6d 69 61 6c 45 72 72 | 6f 72 22 0d 09 09 2c 22 |omialErr|or"...,"|
|00001310| 52 4d 53 20 65 72 72 6f | 72 20 6f 66 20 66 69 74 |RMS erro|r of fit|
|00001320| 22 29 3b 0d 09 64 5b 6a | 2b 2b 5d 3d 44 65 73 63 |");..d[j|++]=Desc|
|00001330| 72 69 62 65 41 72 72 61 | 79 28 64 6f 75 62 6c 65 |ribeArra|y(double|
|00001340| 54 79 70 65 2c 26 4c 50 | 2d 3e 71 2c 22 4c 52 2e |Type,&LP|->q,"LR.|
|00001350| 71 22 0d 09 09 2c 22 4c | 28 56 29 3d 71 5b 30 5d |q"...,"L|(V)=q[0]|
|00001360| 2b 71 5b 31 5d 2a 56 2b | 71 5b 32 5d 2a 56 2a 56 |+q[1]*V+|q[2]*V*V|
|00001370| b1 71 75 61 64 72 61 74 | 69 63 45 72 72 6f 72 22 |.quadrat|icError"|
|00001380| 2c 73 69 7a 65 6f 66 28 | 4c 50 2d 3e 71 29 2f 73 |,sizeof(|LP->q)/s|
|00001390| 69 7a 65 6f 66 28 4c 50 | 2d 3e 71 5b 30 5d 29 2c |izeof(LP|->q[0]),|
|000013a0| 30 4c 29 3b 0d 09 64 5b | 6a 2b 2b 5d 3d 44 65 73 |0L);..d[|j++]=Des|
|000013b0| 63 72 69 62 65 28 64 6f | 75 62 6c 65 54 79 70 65 |cribe(do|ubleType|
|000013c0| 2c 26 4c 50 2d 3e 71 75 | 61 64 72 61 74 69 63 45 |,&LP->qu|adraticE|
|000013d0| 72 72 6f 72 2c 22 4c 52 | 2e 71 75 61 64 72 61 74 |rror,"LR|.quadrat|
|000013e0| 69 63 45 72 72 6f 72 22 | 0d 09 09 2c 22 52 4d 53 |icError"|...,"RMS|
|000013f0| 20 65 72 72 6f 72 20 6f | 66 20 66 69 74 22 29 3b | error o|f fit");|
|00001400| 0d 09 64 5b 6a 2b 2b 5d | 3d 44 65 73 63 72 69 62 |..d[j++]|=Describ|
|00001410| 65 41 72 72 61 79 28 64 | 6f 75 62 6c 65 54 79 70 |eArray(d|oubleTyp|
|00001420| 65 2c 26 4c 50 2d 3e 70 | 6f 77 65 72 2c 22 4c 52 |e,&LP->p|ower,"LR|
|00001430| 2e 70 6f 77 65 72 22 0d | 09 09 2c 22 4c 28 56 29 |.power".|..,"L(V)|
|00001440| 3d 70 6f 77 65 72 5b 30 | 5d 2b 52 65 63 74 69 66 |=power[0|]+Rectif|
|00001450| 79 28 70 6f 77 65 72 5b | 31 5d 2b 70 6f 77 65 72 |y(power[|1]+power|
|00001460| 5b 32 5d 2a 56 29 5e 70 | 6f 77 65 72 5b 33 5d b1 |[2]*V)^p|ower[3].|
|00001470| 70 6f 77 65 72 45 72 72 | 6f 72 20 2a 2f 5c 5c 5c |powerErr|or */\\\|
|00001480| 6e 22 0d 09 09 22 20 20 | 20 20 2f 2a 20 77 68 65 |n"..." | /* whe|
|00001490| 72 65 20 52 65 63 74 69 | 66 79 28 78 29 3d 78 20 |re Recti|fy(x)=x |
|000014a0| 69 66 20 78 b3 30 2c 20 | 61 6e 64 20 52 65 63 74 |if x.0, |and Rect|
|000014b0| 69 66 79 28 78 29 3d 30 | 20 6f 74 68 65 72 77 69 |ify(x)=0| otherwi|
|000014c0| 73 65 2e 20 2a 2f 5c 5c | 5c 6e 22 0d 09 09 22 20 |se. */\\|\n"..." |
|000014d0| 20 20 20 2f 2a 20 50 65 | 6c 6c 69 20 26 20 5a 68 | /* Pe|lli & Zh|
|000014e0| 61 6e 67 20 28 31 39 39 | 31 29 20 45 71 73 2e 39 |ang (199|1) Eqs.9|
|000014f0| 26 31 30 20 75 73 65 20 | 73 79 6d 62 6f 6c 73 20 |&10 use |symbols |
|00001500| 76 3d 56 2f 32 35 35 2c | 20 2a 2f 5c 5c 5c 6e 22 |v=V/255,| */\\\n"|
|00001510| 0d 09 09 22 20 20 20 20 | 2f 2a 20 61 6c 70 68 61 |..." |/* alpha|
|00001520| 3d 70 6f 77 65 72 5b 30 | 5d 2c 20 62 65 74 61 3d |=power[0|], beta=|
|00001530| 70 6f 77 65 72 5b 31 5d | 2c 20 6b 61 70 70 61 3d |power[1]|, kappa=|
|00001540| 70 6f 77 65 72 5b 32 5d | 2a 32 35 35 2c 20 67 61 |power[2]|*255, ga|
|00001550| 6d 6d 61 3d 70 6f 77 65 | 72 5b 33 5d 22 0d 09 09 |mma=powe|r[3]"...|
|00001560| 2c 73 69 7a 65 6f 66 28 | 4c 50 2d 3e 70 6f 77 65 |,sizeof(|LP->powe|
|00001570| 72 29 2f 73 69 7a 65 6f | 66 28 4c 50 2d 3e 70 6f |r)/sizeo|f(LP->po|
|00001580| 77 65 72 5b 30 5d 29 2c | 30 4c 29 3b 0d 09 64 5b |wer[0]),|0L);..d[|
|00001590| 6a 2b 2b 5d 3d 44 65 73 | 63 72 69 62 65 28 64 6f |j++]=Des|cribe(do|
|000015a0| 75 62 6c 65 54 79 70 65 | 2c 26 4c 50 2d 3e 70 6f |ubleType|,&LP->po|
|000015b0| 77 65 72 45 72 72 6f 72 | 2c 22 4c 52 2e 70 6f 77 |werError|,"LR.pow|
|000015c0| 65 72 45 72 72 6f 72 22 | 0d 09 09 2c 22 52 4d 53 |erError"|...,"RMS|
|000015d0| 20 65 72 72 6f 72 20 6f | 66 20 66 69 74 22 29 3b | error o|f fit");|
|000015e0| 0d 09 64 5b 6a 2b 2b 5d | 3d 44 65 73 63 72 69 62 |..d[j++]|=Describ|
|000015f0| 65 41 72 72 61 79 28 64 | 6f 75 62 6c 65 54 79 70 |eArray(d|oubleTyp|
|00001600| 65 2c 26 4c 50 2d 3e 66 | 69 78 65 64 50 6f 77 65 |e,&LP->f|ixedPowe|
|00001610| 72 2c 22 4c 52 2e 66 69 | 78 65 64 50 6f 77 65 72 |r,"LR.fi|xedPower|
|00001620| 22 0d 09 09 2c 22 4c 28 | 56 29 3d 66 69 78 65 64 |"...,"L(|V)=fixed|
|00001630| 50 6f 77 65 72 5b 30 5d | 2b 52 65 63 74 69 66 79 |Power[0]|+Rectify|
|00001640| 28 66 69 78 65 64 50 6f | 77 65 72 5b 31 5d 2b 66 |(fixedPo|wer[1]+f|
|00001650| 69 78 65 64 50 6f 77 65 | 72 5b 32 5d 2a 56 29 5e |ixedPowe|r[2]*V)^|
|00001660| 66 69 78 65 64 50 6f 77 | 65 72 5b 33 5d b1 66 69 |fixedPow|er[3].fi|
|00001670| 78 65 64 50 6f 77 65 72 | 45 72 72 6f 72 20 2a 2f |xedPower|Error */|
|00001680| 5c 5c 5c 6e 22 0d 09 09 | 22 20 20 20 20 2f 2a 20 |\\\n"...|" /* |
|00001690| 54 68 65 20 65 78 70 6f | 6e 65 6e 74 20 66 69 78 |The expo|nent fix|
|000016a0| 65 64 50 6f 77 65 72 5b | 33 5d 20 69 73 20 66 69 |edPower[|3] is fi|
|000016b0| 78 65 64 2e 22 0d 09 09 | 2c 73 69 7a 65 6f 66 28 |xed."...|,sizeof(|
|000016c0| 4c 50 2d 3e 66 69 78 65 | 64 50 6f 77 65 72 29 2f |LP->fixe|dPower)/|
|000016d0| 73 69 7a 65 6f 66 28 4c | 50 2d 3e 66 69 78 65 64 |sizeof(L|P->fixed|
|000016e0| 50 6f 77 65 72 5b 30 5d | 29 2c 30 4c 29 3b 0d 09 |Power[0]|),0L);..|
|000016f0| 64 5b 6a 2b 2b 5d 3d 44 | 65 73 63 72 69 62 65 28 |d[j++]=D|escribe(|
|00001700| 64 6f 75 62 6c 65 54 79 | 70 65 2c 26 4c 50 2d 3e |doubleTy|pe,&LP->|
|00001710| 66 69 78 65 64 50 6f 77 | 65 72 45 72 72 6f 72 2c |fixedPow|erError,|
|00001720| 22 4c 52 2e 66 69 78 65 | 64 50 6f 77 65 72 45 72 |"LR.fixe|dPowerEr|
|00001730| 72 6f 72 22 0d 09 09 2c | 22 52 4d 53 20 65 72 72 |ror"...,|"RMS err|
|00001740| 6f 72 20 6f 66 20 66 69 | 74 22 29 3b 0d 09 64 5b |or of fi|t");..d[|
|00001750| 6a 2b 2b 5d 3d 44 65 73 | 63 72 69 62 65 28 64 6f |j++]=Des|cribe(do|
|00001760| 75 62 6c 65 54 79 70 65 | 2c 26 4c 50 2d 3e 72 2c |ubleType|,&LP->r,|
|00001770| 22 4c 52 2e 72 22 2c 4e | 55 4c 4c 29 3b 0d 09 64 |"LR.r",N|ULL);..d|
|00001780| 5b 6a 2b 2b 5d 3d 44 65 | 73 63 72 69 62 65 28 64 |[j++]=De|scribe(d|
|00001790| 6f 75 62 6c 65 54 79 70 | 65 2c 26 4c 50 2d 3e 67 |oubleTyp|e,&LP->g|
|000017a0| 2c 22 4c 52 2e 67 22 2c | 4e 55 4c 4c 29 3b 0d 09 |,"LR.g",|NULL);..|
|000017b0| 64 5b 6a 2b 2b 5d 3d 44 | 65 73 63 72 69 62 65 28 |d[j++]=D|escribe(|
|000017c0| 64 6f 75 62 6c 65 54 79 | 70 65 2c 26 4c 50 2d 3e |doubleTy|pe,&LP->|
|000017d0| 62 2c 22 4c 52 2e 62 22 | 2c 4e 55 4c 4c 29 3b 0d |b,"LR.b"|,NULL);.|
|000017e0| 09 64 5b 6a 2b 2b 5d 3d | 44 65 73 63 72 69 62 65 |.d[j++]=|Describe|
|000017f0| 28 64 6f 75 62 6c 65 54 | 79 70 65 2c 26 4c 50 2d |(doubleT|ype,&LP-|
|00001800| 3e 67 61 69 6e 41 63 63 | 75 72 61 63 79 2c 22 4c |>gainAcc|uracy,"L|
|00001810| 52 2e 67 61 69 6e 41 63 | 63 75 72 61 63 79 22 2c |R.gainAc|curacy",|
|00001820| 4e 55 4c 4c 29 3b 0d 09 | 64 5b 6a 2b 2b 5d 3d 44 |NULL);..|d[j++]=D|
|00001830| 65 73 63 72 69 62 65 28 | 64 6f 75 62 6c 65 54 79 |escribe(|doubleTy|
|00001840| 70 65 2c 26 4c 50 2d 3e | 67 6d 2c 22 4c 52 2e 67 |pe,&LP->|gm,"LR.g|
|00001850| 6d 22 0d 09 09 2c 22 54 | 68 65 20 6d 6f 6e 69 74 |m"...,"T|he monit|
|00001860| 6f 72 27 73 20 63 6f 6e | 74 72 61 73 74 20 67 61 |or's con|trast ga|
|00001870| 69 6e 2e 22 29 3b 0d 09 | 64 5b 6a 2b 2b 5d 3d 44 |in.");..|d[j++]=D|
|00001880| 65 73 63 72 69 62 65 28 | 73 68 6f 72 74 54 79 70 |escribe(|shortTyp|
|00001890| 65 2c 26 4c 50 2d 3e 72 | 61 6e 67 65 53 65 74 2c |e,&LP->r|angeSet,|
|000018a0| 22 4c 52 2e 72 61 6e 67 | 65 53 65 74 22 0d 09 09 |"LR.rang|eSet"...|
|000018b0| 2c 22 7a 65 72 6f 20 69 | 6e 64 69 63 61 74 65 73 |,"zero i|ndicates|
|000018c0| 20 74 68 61 74 20 72 61 | 6e 67 65 20 70 61 72 61 | that ra|nge para|
|000018d0| 6d 65 74 65 72 73 20 68 | 61 76 65 20 79 65 74 20 |meters h|ave yet |
|000018e0| 74 6f 20 62 65 20 73 65 | 74 22 29 3b 0d 09 64 5b |to be se|t");..d[|
|000018f0| 6a 2b 2b 5d 3d 44 65 73 | 63 72 69 62 65 28 73 68 |j++]=Des|cribe(sh|
|00001900| 6f 72 74 54 79 70 65 2c | 26 4c 50 2d 3e 4c 2e 65 |ortType,|&LP->L.e|
|00001910| 78 69 73 74 73 2c 22 4c | 52 2e 4c 2e 65 78 69 73 |xists,"L|R.L.exis|
|00001920| 74 73 22 0d 09 09 2c 22 | 7a 65 72 6f 20 69 6e 64 |ts"...,"|zero ind|
|00001930| 69 63 61 74 65 73 20 74 | 68 61 74 20 6c 75 6d 69 |icates t|hat lumi|
|00001940| 6e 61 6e 63 65 20 74 61 | 62 6c 65 20 68 61 73 20 |nance ta|ble has |
|00001950| 79 65 74 20 74 6f 20 62 | 65 20 69 6e 69 74 69 61 |yet to b|e initia|
|00001960| 6c 69 7a 65 64 22 29 3b | 0d 09 64 5b 6a 2b 2b 5d |lized");|..d[j++]|
|00001970| 3d 44 65 73 63 72 69 62 | 65 28 73 68 6f 72 74 54 |=Describ|e(shortT|
|00001980| 79 70 65 2c 26 4c 50 2d | 3e 56 4d 69 6e 2c 22 4c |ype,&LP-|>VMin,"L|
|00001990| 52 2e 56 4d 69 6e 22 0d | 09 09 2c 22 6d 69 6e 69 |R.VMin".|..,"mini|
|000019a0| 6d 75 6d 20 76 61 6c 75 | 65 20 74 68 61 74 20 63 |mum valu|e that c|
|000019b0| 61 6e 20 62 65 20 6c 6f | 61 64 65 64 20 69 6e 74 |an be lo|aded int|
|000019c0| 6f 20 44 41 43 22 29 3b | 0d 09 64 5b 6a 2b 2b 5d |o DAC");|..d[j++]|
|000019d0| 3d 44 65 73 63 72 69 62 | 65 28 73 68 6f 72 74 54 |=Describ|e(shortT|
|000019e0| 79 70 65 2c 26 4c 50 2d | 3e 56 4d 61 78 2c 22 4c |ype,&LP-|>VMax,"L|
|000019f0| 52 2e 56 4d 61 78 22 0d | 09 09 2c 22 6d 61 78 69 |R.VMax".|..,"maxi|
|00001a00| 6d 75 6d 20 76 61 6c 75 | 65 20 74 68 61 74 20 63 |mum valu|e that c|
|00001a10| 61 6e 20 62 65 20 6c 6f | 61 64 65 64 20 69 6e 74 |an be lo|aded int|
|00001a20| 6f 20 44 41 43 22 29 3b | 0d 09 64 5b 6a 2b 2b 5d |o DAC");|..d[j++]|
|00001a30| 3d 44 65 73 63 72 69 62 | 65 28 30 2c 4e 55 4c 4c |=Describ|e(0,NULL|
|00001a40| 2c 4e 55 4c 4c 2c 4e 55 | 4c 4c 29 3b 09 09 09 09 |,NULL,NU|LL);....|
|00001a50| 2f 2a 20 4d 61 72 6b 20 | 65 6e 64 20 6f 66 20 6c |/* Mark |end of l|
|00001a60| 69 73 74 20 2a 2f 0d 09 | 61 73 73 65 72 74 28 6a |ist */..|assert(j|
|00001a70| 3c 3d 56 41 52 49 41 42 | 4c 45 53 29 3b 0d 09 72 |<=VARIAB|LES);..r|
|00001a80| 65 74 75 72 6e 20 64 3b | 0d 7d 00 00 00 00 00 00 |eturn d;|.}......|
|00001a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 01 00 00 00 01 dc | 00 00 00 dc 00 00 00 52 |........|.......R|
|00001b10| 00 00 0f 67 00 00 02 57 | 05 00 00 00 0f 70 00 00 |...g...W|.....p..|
|00001b20| 01 82 05 00 00 00 0f 75 | 00 00 02 39 05 00 00 00 |.......u|...9....|
|00001b30| 15 52 65 61 64 4c 75 6d | 69 6e 61 6e 63 65 52 65 |.ReadLum|inanceRe|
|00001b40| 63 6f 72 64 2e 63 02 00 | 00 00 50 61 72 74 53 49 |cord.c..|..PartSI|
|00001b50| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 ab bf ee 6c 00 00 | 00 00 00 00 02 2e 00 00 |.....l..|........|
|00001b80| 0f c7 00 00 01 5d 05 00 | 00 00 0f d3 00 00 02 8e |.....]..|........|
|00001b90| 05 00 00 00 10 4c 00 00 | 02 55 05 00 00 00 11 0a |.....L..|.U......|
|00001ba0| 00 00 02 41 05 00 00 00 | 11 70 00 00 01 a4 05 00 |...A....|.p......|
|00001bb0| 00 00 12 be 00 00 02 b3 | 05 00 00 00 13 8f 00 00 |........|........|
|00001bc0| 01 77 05 00 00 00 14 41 | 00 00 01 93 05 00 00 00 |.w.....A|........|
|00001bd0| 14 42 00 00 01 94 05 00 | 00 00 14 46 00 00 01 96 |.B......|...F....|
|00001be0| 05 00 00 00 14 4a 00 00 | 01 89 05 00 00 00 14 4e |.....J..|.......N|
|00001bf0| 00 00 01 97 05 00 00 00 | 14 52 00 00 01 99 05 00 |........|.R......|
|00001c00| 00 00 00 0a 00 00 0c 71 | 00 69 00 00 00 00 00 00 |.......q|.i......|
|00001c10| 00 7e 00 04 00 00 05 82 | 00 00 05 9b 19 49 6e 69 |.~......|.....Ini|
|00001c20| 74 69 61 6c 69 7a 65 4c | 75 6d 69 6e 61 6e 63 65 |tializeL|uminance|
|00001c30| 52 65 63 6f 72 64 00 00 | 06 fd 00 00 07 10 13 52 |Record..|.......R|
|00001c40| 65 61 64 4c 75 6d 69 6e | 61 6e 63 65 52 65 63 6f |eadLumin|anceReco|
|00001c50| 72 64 00 00 08 a7 00 00 | 08 bb 15 57 72 69 74 65 |rd......|...Write|
|00001c60| 4c 75 6d 69 6e 61 6e 63 | 65 52 65 63 6f 72 64 00 |Luminanc|eRecord.|
|00001c70| 00 00 0d 1d 00 00 0d 34 | 17 44 65 73 63 72 69 62 |.......4|.Describ|
|00001c80| 65 4c 75 6d 69 6e 61 6e | 63 65 52 65 63 6f 72 64 |eLuminan|ceRecord|
|00001c90| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 03 | 00 04 00 a1 00 1d 01 8c |........|........|
|00001cc0| 02 7c 00 a1 00 1d 01 8c | 02 7c aa c8 35 65 00 00 |.|......|.|..5e..|
|00001cd0| 0d 35 00 00 0d 44 00 00 | 0d 10 00 00 00 00 01 00 |.5...D..|........|
|00001ce0| 00 00 01 dc 00 00 00 dc | 00 00 00 52 00 cf ce a4 |........|...R....|
|00001cf0| 1a d0 00 00 00 1c 00 52 | 00 01 42 4b 50 54 00 00 |.......R|..BKPT..|
|00001d00| 00 12 4d 50 53 52 00 01 | 00 1e 66 60 ff ff 00 00 |..MPSR..|..f`....|
|00001d10| 00 00 00 00 00 00 03 ef | ff ff 00 00 00 0e 00 00 |........|........|
|00001d20| 00 00 03 ed ff ff 00 00 | 00 90 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+